namespace Devsoft.Utilities
{
    public class Singleton<T> where T:new()
    {
        static Singleton()
        {
            _instance = new T();
            Default = _instance;
        }

        public static T Default { get; set; }

        protected static readonly T _instance;
    }
}